<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="/lib/vue.js"></script>

</head>

<body>
  <div id="box">
    <h1>ads</h1>
    <img v-bind:src="imgs" alt="">
    <br>
    <br>
    <br>
    <br>
    <button @click="change"> 点击切换图片</button>
    <button @click="change1"> 点击切换图片</button>
    <p>{{age}}</p>
  </div>
</body>
<script>
  var vl = new Vue({
    el: '#box',
    data: {
      mas: 123,
      age: 18,
      imgs: '/image/图片/13.jpg'
    },
    methods: {
      change() {
        this.imgs = '/image/图片/14.jpg'
      },
      change1() {
        this.imgs = '/image/图片/13.jpg'
      }
    }
  })
</script>

</html>